package feign;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import pojo.Order;

@FeignClient(name="orders")
@RequestMapping("/order")
public interface OrderFeign {

    @PutMapping(value="/{id}")
    public Result update(@RequestBody Order order, @PathVariable String id);

}
